//
//  ActivityInfoDescriptionCell.m
//  SDSY
//
//  Created by 蓝布鲁 on 2017/4/5.
//  Copyright (c) 2017 蓝布鲁. All rights reserved.
//

#import "ActivityInfoDescriptionCell.h"
#import "ActivityInfoModel.h"

@interface ActivityInfoDescriptionCell()

@property (nonatomic, retain)UILabel *descriptionLabel;

@end

@implementation ActivityInfoDescriptionCell

- (void)setupView {
    [super setupView];
    // 活动简介
    self.descriptionLabel = [[UILabel alloc] init];
    self.descriptionLabel.numberOfLines = 0;
    [self.contentView addSubview:self.descriptionLabel];

    // 布局
    self.descriptionLabel.sd_layout.leftSpaceToView(self.contentView,10).topSpaceToView(self.contentView,5)
            .rightSpaceToView(self.contentView,10).autoHeightRatio(0);
}

- (void)setModel:(ActivityInfoModel *)model {
    // 活动简介
    self.descriptionLabel.text = model.introduce;
    [self setupAutoHeightWithBottomView:self.descriptionLabel bottomMargin:5];
    
}

@end
